﻿using System;
using System.Collections.Generic;
using DC2010.Objects;
using DC2010.Logic;
using DC2010.Objects.Data;
using log4net;
using System.Reflection;

namespace DC2010.Systems
{
    public class ItemSystem : BaseSystem<ItemInfo, ItemGfx, ItemData>
    {
        public override void Init(string code)
        {
            IsUsingInfo = true;
            IsUsingData = true;
            IsUsingGfx = true;

            InfoFileName = "Data\\" + code + "Info.xml";
            GfxFileName = "Data\\" + code + "Gfx.xml";
            DataFileName = "Temp\\" + code + "Data.xml";

            Code = code;

            DateTime dtStart = DateTime.Now;

            base.Init(code);

            log.Info("Core, Items init takes: " + (DateTime.Now - dtStart).TotalSeconds + " seconds");

        }
    }
}
